namespace RBAC.Read.Api.Application.Command.BomCommand
{
    using MediatR;
    using RBAC.ErrorCode;
    using RBAC.Read.Api.Application.Dto.Bom;

    /// <summary>
    /// BOM 分页查询（无筛选条件）命令
    /// </summary>
    public class GetBomListCommand : IRequest<APIPaging<BomListItemDto>>
    {
        /// <summary>页码（从1开始）</summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>页大小</summary>
        public int PageSize { get; set; } = 10;

        /// <summary>排序，默认按 Id 倒序</summary>
        public string OrderBy { get; set; } = "Id DESC";
    }
}
